package com.shadt.pay.wechat.entity;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;

import com.shadt.pay.entity.Pay_Shadt_App;
/**
 * 微信商户信息
 * @author SongR
 *
 */
@Entity
public class Pay_WeChat_App {
	@Id
	private String wechat_id;
	private String wechat_app_id;//微信申请的appid	//wxa007553209f3c8a8
	private String wechat_app_name;//微信申请的appname //掌上浏阳
	private String wechat_app_key;//微信申请的appkey //ba5a610wbbd717828we5841vb2e516c7
	private String wechat_mch_id;//微信申请的mchid //1315614001
	@OneToMany(cascade= {CascadeType.ALL},fetch=FetchType.LAZY,mappedBy="weChatApp")
	private List<Pay_Shadt_App> shadtApps=new ArrayList<Pay_Shadt_App>();//对应多个shadt商户
	public String getWechat_id() {
		return wechat_id;
	}

	public void setWechat_id(String wechat_id) {
		this.wechat_id = wechat_id;
	}

	public String getWechat_app_id() {
		return wechat_app_id;
	}

	public void setWechat_app_id(String wechat_app_id) {
		this.wechat_app_id = wechat_app_id;
	}

	public String getWechat_app_name() {
		return wechat_app_name;
	}

	public void setWechat_app_name(String wechat_app_name) {
		this.wechat_app_name = wechat_app_name;
	}

	public String getWechat_app_key() {
		return wechat_app_key;
	}

	public void setWechat_app_key(String wechat_app_key) {
		this.wechat_app_key = wechat_app_key;
	}

	public String getWechat_mch_id() {
		return wechat_mch_id;
	}

	public void setWechat_mch_id(String wechat_mch_id) {
		this.wechat_mch_id = wechat_mch_id;
	}

	public List<Pay_Shadt_App> getShadtApps() {
		return shadtApps;
	}

	public void setShadtApps(List<Pay_Shadt_App> shadtApps) {
		this.shadtApps = shadtApps;
	}
}
